package com.zzgele.qmzb.api.dao;

import com.zzgele.qmzb.api.core.Mapper;
import com.zzgele.qmzb.api.model.DiamondRechargeLog;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;

public interface DiamondRechargeLogMapper extends Mapper<DiamondRechargeLog> {
    @Select("SELECT SUM(money) money FROM diamond_recharge_log where uid=#{uid}")
    BigDecimal getTotalMoney(Long uid);
}